package fr.louloutes.lolshooter.engine.sprites;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Rect;
import fr.louloutes.lolshooter.R;
import fr.louloutes.lolshooter.engine.objects.protagonists.LifeBar;

/**
 * Class SpriteMonster: monster sprite handling
 * 
 * @author Louloute
 * 
 */
public class SpriteMonster extends LolSprite
{

	static Bitmap bb = null;
	int resId = R.drawable.monster;

	LifeBar lifeBar = new LifeBar( 20 );

	/**
	 * Constructor with initializations
	 * 
	 * @param res
	 */
	public SpriteMonster( Resources res )
	{
		if ( bb == null )
		{
			bb = BitmapFactory.decodeResource( res, resId );
		}
		b = bb;
		rect = new Rect( 0, 0, b.getWidth(), b.getHeight() );
		collisionRect = rect;
	}

}
